package com.hilaver.dzmis.service;

import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

public interface II18nService {
	
	//The UI prefix
	public final static String UI_LOGIN = "ui.login";
	
	public final static String IS_FIRSTLEVEL_MENU = "1";
	
	/**
	 * I18n message cache, the key is key prefix plus local string(zh_cn, fr_fr, en_us), and the value is xml String.
	 * For example, ui.login-zh_cn, ui.layout-fr_fr
	 */
	public static Map<String, String> I18N_MAP = new HashMap<String, String>();
	
	public static Map<String, String> MENU_MAP = new HashMap<String, String>();
	
	public String getMessage(int page, String sort, String order) throws Exception;
	
	public String getMessage(Locale locale);
	
	public String getMessage(Locale locale, String keyPrefix) throws Exception;
	
	public String getMenu(Locale locale, String menuType) throws Exception;
	
}
